package generalcheck;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

public class LoginTest {
	WebDriver driver = new FirefoxDriver();
	LoginPage loginPage = new LoginPage(driver);
	@Before
	public void setup(){
		loginPage.get();
	}
	@After
	public void closeDriver(){
		loginPage.close();
	}
	@Test
	public void loginTest() {

		loginPage.inputUserName("1047421");
		loginPage.inputPassword("p455w0rd1");
		loginPage.clickLoginButton();
		
		HomePage homePage = new HomePage(driver);
		assertEquals("","Clare Woodley",homePage.getFullName());
	}

}
